<%@ taglib prefix="c" uri="/WEB-INF/tlds/hdiv-c.tld"%>
<%@ taglib prefix="form" uri="/WEB-INF/tlds/hdiv-spring-form-3_0_4.tld"%>
<%@ taglib prefix="spring" uri="/WEB-INF/tlds/hdiv-spring.tld" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<c:url value="mostrarHWF1003.html" var="confcambiodecliente"/>
<script type="text/javascript">
        function habilitaDeshabilitaChk()
            {
                document.forms[0].cambiar.disabled=false;
            } 
    </script>

<form:form modelAttribute="form" action="${confcambiodecliente}">
  <form:hidden path="accion"/>
  <form:hidden path="control"/>
  <table id="fullheighttable" width="775" cellspacing="0" cellpadding="0"
         align="center">
    <tr>
      <td align="left" valign="top" class="fondo_contenido padtop16left21">
        <table border="0" cellspacing="0" cellpadding="0"
               class="verdana11bazul">
          <tr>
            <td height="22" align="left" valign="top" class="verdana11bazul">
              <ul class="navlist2">
                <li>CAMBIO DE CLIENTE</li>
              </ul>
            </td>
          </tr>
          <tr>
            <td align="left" valign="top" class="borde_totalblanco">
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="105" height="23" align="left" valign="top"
                      class="verdana10bazul">Banco</td>
                  <td height="23" align="left" valign="top"
                      class="verdana10negro">
                    <c:out value="${sessionScope.nombreCliente}"/>
                  </td>
                </tr>
                <!-- Muestra el grupo de clientes en caso de coorporaci�n      -->
                <c:if test="${not empty listaClientes}">
                  <tr>
                    <td width="105" height="23" align="left" valign="top"
                        class="verdana10bazul">Grupo Cliente</td>
                    <td width="85%">
                      <form:select cssStyle="height: 20px; width: 180px; font-family: Arial; font-size: 8pt"
                                   path="cli_grupo">
                                   <form:option value=""></form:option>
                                   <c:if test="${not empty listaClientes}">
                                   <form:options items="${listaClientes}"
                                                 itemValue="codCliente"
                                                 itemLabel="nombre"/>
                        </c:if>
                      </form:select>
                    </td>
                  </tr>
                </c:if>
                <tr>
                <td colspan="2"><form:errors path="*"/></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        <c:if test="${not empty listadoClientes}">
          <table>
            <tr>
              <td>
                <input type="button" class="boton" name="cambiar" value="Cambiar" disabled="true"
                             onclick="moveForward('cambiar')"/>
              </td>
            </tr>
          </table>
          <display:table id="lista" name="listadoClientes" cellpadding="0"
                         cellspacing="0" style="width:60%" pagesize="10"
                         requestURI="${confcambiodecliente}" class="its">
            <tbody>
              <display:column property="nombre" headerClass="even" class="even"
                              title="Cliente"/>
              <display:column property="codCliente" headerClass="even"
                              class="even" title="C&oacute;digo"/>
              <display:column headerClass="even" class="even" title="Sel.">
                <input type="radio" name="chk" value="${lista.codCliente}"
                            onclick="habilitaDeshabilitaChk();"/>
              </display:column>
            </tbody>
          </display:table>
        </c:if>
      </td>
    </tr>
  </table>
</form:form>